package com.hospital.common.core.exception;

import lombok.Data;

@Data
public class TimeTaskException extends RuntimeException {
    private Integer code;
    private String message;

    public TimeTaskException(ServiceExcepitonEnum serviceExcepitonEnum) {
        this.code = serviceExcepitonEnum.getCode();
        this.message = serviceExcepitonEnum.getMessage();
    }
}
